package com.itheima.service.mongo;

import com.itheima.domain.db.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

/**
 * 圈子、视频交互模块
 * @author zsk
 * @create 2022-03-18-16:26
 */
public interface CommentService {

    //保存喜欢、点赞、评论
    Integer saveComment(Comment comment);

    //删除喜欢、点赞、评论(参数，当前登录id,操作状态id,以及具体操作状态)
    Integer removeComment(Long userId, ObjectId publishId,Integer commentType);

    //展示动态评论
    PageBeanVo findCommentByPage(ObjectId publishId, Integer commentType, Integer pageNum, Integer pageSize);

    //查看点赞、评论、喜欢详情
    PageBeanVo findUserCommentByPage(Long publishId,Integer commentType,Integer pageNum,Integer pageSize);

}
